
from django.urls import path


from . import views

urlpatterns=[
    #邮件激活
    path('activation', views.active_view),
    #地址管理
    path('<str:username>/address', views.AddressView.as_view()),  # 获取和创建地址
    path('<str:username>/address/<int:address_id>', views.AddressView.as_view()),  # 删除和更新
    path('<str:username>/address/default', views.DefaultAddressView.as_view()),
    path('sms/code', views.sendsms_view),
    path('weibo/authorization', views.WeiboLoginView.as_view()),
    path('weibo/users', views.WeiboAccessView.as_view()),


]